function Shortcut(){
	this.shiftPressed = false;
	this.messageText = global.getElement('messageText');

	global.createObject('shortcut', this);
}

Shortcut.prototype.performKeyPressing = function(kc){
	switch(kc){
		//Enter
		case 13: 
			if(!this.shiftPressed){
				global.getObject('me').sendMessage();
				return false;	
			} 
		break;
		//shift
		case 16: 
			this.shiftPressed = true;
		break;
	}

	return true;
}

Shortcut.prototype.performKeyReleasing = function(kc){
	switch(kc){
		case 16:
			this.shiftPressed = false;
		break;
	}
}